﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.CPU
{
    public class CPUController
    {
        public List<string> GetListSocketByManufactureName(string sName)
        {
            CPUDataAccess cda = new CPUDataAccess();
            return cda.GetListSocketByManufactureName(sName);
        }

        public List<string> GetListBusByManufactureNameAndSocket(string sManufacture,string sSocket)
        {
            CPUDataAccess cda = new CPUDataAccess();
            return cda.GetListBusByManufactureNameAndSocket(sManufacture, sSocket);
        }

        public List<string> GetListSpeedByManuAndSocketAndBus(string sManufacture,string sSocket,string sBus)
        {
            CPUDataAccess cda = new CPUDataAccess();
            return cda.GetListSpeedByManuAndSocketAndBus(sManufacture, sSocket,sBus);
        }

        public List<string> GetListProductNameBuManuAndSocketAndBusAndSpeed(string sManufacture,string sSocket,string sBus,string sSpeed)
        {
            CPUDataAccess cda = new CPUDataAccess();
            return cda.GetListProductNameByManuAndSocketAndBusandSpeed(sManufacture, sSocket, sBus, sSpeed);
        }
        public int GetCPUIDByManuAndsocketAndBusAndSpeedAndName(string sManufacture,string sSocket, string sBus,string sSpeed, string sName)
        {
            CPUDataAccess cda = new CPUDataAccess();
            return cda.GetCPUIDByProductNameAndManuAndSocketAndBusAndSpeed(sManufacture, sSocket, sBus, sSpeed,sName);
        }
    }
}
